package com.bluegalaxy.nhb.snservice.common.builder;

import com.bluegalaxy.nhb.snservice.domain.vo.BootstrapTablePage;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @author:
 * @date: 2020-03-06
 * @time: 14:26
 * @description: To change this template use File | Settings | File Templates.
 */
public class BootstrapTablePageBuilder {

    private Long total;
    private List rows;

    public static BootstrapTablePageBuilder createBuilder(){
        return new BootstrapTablePageBuilder();
    }

    public BootstrapTablePageBuilder total(Long total){
        this.total = total;
        return this;
    }

    public BootstrapTablePageBuilder rows(List rows){
        this.rows = rows;
        return this;
    }

    public BootstrapTablePage bulid(){
        BootstrapTablePage bootstrapTablePage = new BootstrapTablePage();
        bootstrapTablePage.setRows(this.rows);
        bootstrapTablePage.setTotal(this.total);
        return bootstrapTablePage;
    }
}
